package com.axxc.jpa.pattendegign.command;

/**
 * 
 * @ClassName Command
 * @Description //TODO 定义命令的抽象类或接口类
 * @author xxc
 * @data 2018年9月16日下午9:47:48
 * @see {@link http://gitee.com/biuabiu/ }
 */
public abstract class Command {
	/**
	 * 包含一个Receiver的引用
	 */
	private Peddler peddler;

	protected Command(Peddler peddler) {
		super();
		this.peddler = peddler;
	}

	public Peddler getPeddler() {
		return peddler;
	}

	public void setPeddler(Peddler peddler) {
		this.peddler = peddler;
	}

	public abstract void sail();
}